<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.*"%>
<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<%
	Date d = new Date();
	SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
	String nowDate = df.format(d);
%>
<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
	<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
	<meta HTTP-EQUIV="expires" CONTENT="0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>交易下单</title>
	<style type="text/css">
	#cssFath .clearfix1 .nav-tabs1 > li{
		float: none;
		width: 230px;
	}
	#cssFath .clearfix1 .nav-tabs1 > li > a{
		height: 50px;
	    color: #4f4f51;
	    text-decoration: underline;
	}
	#cssFath .clearfix1 .nav-tabs1 > li > a{
		border-top: 1px solid #fff;
		border-left: 5px solid #fff;
		border-bottom: 1px solid #fff;
	}
	
	#cssFath .clearfix1 .nav-tabs1 > li.active > a, .nav-tabs1 > li.active > a:hover, .nav-tabs1 > li.active > a:focus{
		border-top: 1px solid #e2e2e2;
		border-left: 5px solid #ff6800;
		border-bottom: 1px solid #e2e2e2;
	}
	#cssFath .clearfix1{
		width: auto;
	    margin: 20px 0 0 0;
	    float: left;
	    background: #ffffff;
	}
	#cssFath .page-body1{
		float: left;
    	margin-left: 60px;
    	margin-top: 20px;
	}
	#cssFath .form-group1{
		height: 40px;
    	line-height: 20px;
	}
	</style>
</head>
<body id="cssFath" class="sub-page">
	<input type="hidden" id="nowDate" value="<%=nowDate %>">
	<div id="orderAdd" class="typeContent">
		<div class="page-content" style="min-height: 700px;width: 1200px;margin: 0 auto;">
			<!-- <div class="page-header">
				<h4 class="page-title">交易下单</h4>
			</div> -->
			<div class="clearfix1">
			    <ul class="nav nav-tabs1" role="tablist" style="border: 0px;">
			    	<!-- class="active" -->
			   		<li role="presentation" class="active">
			        	<a href="#" onclick="showTypeContent('largeAmountTransaction','largeAmountTransaction','交易所大宗交易指令')" data-toggle="tab">交易所大宗交易指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('fixedIncomeTerrace','fixedIncomeTerrace','上交所固定收益指令')" data-toggle="tab">上交所固定收益指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('bankBondDeal','bankBondDeal','银行间债券买卖指令')" data-toggle="tab">银行间债券买卖指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('largeAmountTransaction','banksBuyBack','银行间质押式回购指令')" data-toggle="tab">银行间质押式回购指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('fixedIncomeTerrace','banksBuyBack2','银行间买断式回购指令')" data-toggle="tab">银行间买断式回购指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('bankBondDeal','bondTransformTrusteeship','银行间跨市场转托管指令')" data-toggle="tab">银行间跨市场转托管指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('largeAmountTransaction','openFundOpenAnAccount','开放式基金开户指令')" data-toggle="tab">开放式基金开户指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('fixedIncomeTerrace','openFundApplyAndAccount','开放式基金申赎指令')" data-toggle="tab">开放式基金申赎指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('bankBondDeal','oneStairBondBid','一级投标指令')" data-toggle="tab">一级投标指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('largeAmountTransaction','oneStairBondPayment','一级缴款指令')" data-toggle="tab">一级缴款指令</a>
			        </li>
			   		<li role="presentation">
			        	<a href="#" onclick="showTypeContent('fixedIncomeTerrace','omnipotentOrder','万能指令')" data-toggle="tab">万能指令</a>
			        </li>
			    </ul>
		 	</div>
			<div class="page-body1" id="largeAmountTransaction" style="width: 800px;display: none;">
			<form name="largeAmountTransactionForm" id="largeAmountTransactionForm" method="post" class="form-horizontal">
				<h3>交易所大宗交易指令</h3><br>
				<input type="hidden" name="directiveType" value="">
				<div class="form-group1">
					<label class="col-sm-2 control-label">产品名称<span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="产品名称" class="form-control use-select2" name="prjCode" id="prjCode1" class="prjCode" ></select>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">证券代码 </label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="证券代码" class="form-control" name="securitiesCode" id="securitiesCode" value="" />
					</div>
					<label class="col-sm-2 control-label">证券名称</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="证券名称" class="form-control" name="securitiesName" id="securitiesName" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">委托方向 <span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="委托方向" class="form-control use-select2" name="entrustAspect" class="entrustAspect" >
							<option value="买入">买入</option>
		            		<option value="卖出">卖出</option>
						</select>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">交易对手</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="交易对手" class="form-control" name="tradeOpponent" id="tradeOpponent" value="" />
					</div>
					<label class="col-sm-2 control-label">对手席位</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="对手席位" class="form-control" name="" id="" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">净价价格</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="净价价格" class="form-control" name="netprice" id="netprice" value="" />
					</div>
					<label class="col-sm-2 control-label">全价价格</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="全价价格" class="form-control" name="fullprice" id="fullprice" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">指令数量</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="指令数量" class="form-control" name="directiveAmount" id="directiveAmount" value="" />
					</div>
					<label class="col-sm-2 control-label">约定号</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="约定号" class="form-control" name="assumpsitNum" id="assumpsitNum" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">联系人</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="联系人" class="form-control" name="contacts" id="contacts" value="" />
					</div>
					<label class="col-sm-2 control-label">联系方式</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="联系方式" class="form-control" name="contactsWay" id="contactsWay" value="" />
					</div>
				</div>
				
				<div class="form-group1" style="height: 70px;">
					<label class="col-sm-2 control-label">备注</label>
					<div class="col-sm-10 form-inner">
						<textarea cols="60" rows="3" class="form-control" name="remark" id="remark" value="" ></textarea>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">指令日期<span class="text-danger">*</span></label>
					<div class="col-sm-10 form-inner">
						<input type="text" style="float: left; width: 246.66px;" placeholder="指令日期" class="form-control directiveStime" name="directiveStime" value="" />
						<label style="float: left;margin: 5px 10px 0 10px;">~</label>
						<input type="text" style="float: left; width: 246.66px;" placeholder="指令日期" class="form-control directiveEtime" name="directiveEtime" value="" />
					</div>
				</div>
				<br>
				<div class="page-footer" style="margin-left: 30%;">
			         <button type="button" class="btn btn-primary btn-save" data-loading-text="保存中..." id="submitBtn" name="submitBtn" onclick="doSubmit('largeAmountTransactionForm')">保存</button>
			    	 <input type="reset" class="resetForm" name="resetForm" value="重置" style="display: none;"/>
			    </div>
			</form>
			</div>
			
			
			<div class="page-body1" id="fixedIncomeTerrace" style="width: 800px;display: none;">
			<form name="fixedIncomeTerraceForm" id="fixedIncomeTerraceForm" method="post" class="form-horizontal">
				<h3>上交所固定收益指令</h3><br>
				<input type="hidden" name="directiveType" value="">
				<div class="form-group1">
					<label class="col-sm-2 control-label">产品名称<span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="产品名称" class="form-control use-select2" name="prjCode" id="prjCode2" class="prjCode" ></select>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">证券代码 </label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="证券代码" class="form-control" name="securitiesCode" id="securitiesCode" value="" />
					</div>
					<label class="col-sm-2 control-label">证券名称</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="证券名称" class="form-control" name="securitiesName" id="securitiesName" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">委托方向 <span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="委托方向" class="form-control use-select2" name="entrustAspect" class="entrustAspect" >
							<option value="买入">买入</option>
		            		<option value="卖出">卖出</option>
						</select>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">净价价格</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="净价价格" class="form-control" name="netprice" id="netprice" value="" />
					</div>
					<label class="col-sm-2 control-label">全价价格</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="全价价格" class="form-control" name="fullprice" id="fullprice" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">指令数量</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="指令数量" class="form-control" name="directiveAmount" id="directiveAmount" value="" />
					</div>
					<label class="col-sm-2 control-label">约定号</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="约定号" class="form-control" name="assumpsitNum" id="assumpsitNum" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">交易对手</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="交易对手" class="form-control" name="tradeOpponent" id="tradeOpponent" value="" />
					</div>
					<label class="col-sm-2 control-label">对方交易员号码</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="对方交易员号码" class="form-control" name="opponentTraderNum" id="opponentTraderNum" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">联系人</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="联系人" class="form-control" name="contacts" id="contacts" value="" />
					</div>
					<label class="col-sm-2 control-label">联系方式</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="联系方式" class="form-control" name="contactsWay" id="contactsWay" value="" />
					</div>
				</div>
				
				<div class="form-group1" style="height: 70px;">
					<label class="col-sm-2 control-label">备注</label>
					<div class="col-sm-10 form-inner">
						<textarea cols="60" rows="3" class="form-control" name="remark" id="remark" value="" ></textarea>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">指令日期<span class="text-danger">*</span></label>
					<div class="col-sm-10 form-inner">
						<input type="text" style="float: left; width: 246.66px;" placeholder="指令日期" class="form-control directiveStime" name="directiveStime" value="" />
						<label style="float: left;margin: 5px 10px 0 10px;">~</label>
						<input type="text" style="float: left; width: 246.66px;" placeholder="指令日期" class="form-control directiveEtime" name="directiveEtime" value="" />
					</div>
				</div>
				<br>
				<div class="page-footer" style="margin-left: 30%;">
			         <button type="button" class="btn btn-primary btn-save" data-loading-text="保存中..." id="submitBtn" name="submitBtn" onclick="doSubmit('fixedIncomeTerraceForm')">保存</button>
			    	 <input type="reset" class="resetForm" name="resetForm" value="重置" style="display: none;"/>
			    </div>
			</form>
			</div>
			
			<div class="page-body1" id="bankBondDeal" style="width: 800px;display: none;">
			<form name="bankBondDealForm" id="bankBondDealForm" method="post" class="form-horizontal">
				<h3>银行间债券买卖指令</h3><br>
				<input type="hidden" name="directiveType" value="">
				<div class="form-group1">
					<label class="col-sm-2 control-label">产品名称<span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="产品名称" class="form-control use-select2" name="prjCode" id="prjCode3" class="prjCode" ></select>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">证券代码 </label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="证券代码" class="form-control" name="securitiesCode" id="securitiesCode" value="" />
					</div>
					<label class="col-sm-2 control-label">证券名称</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="证券名称" class="form-control" name="securitiesName" id="securitiesName" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">委托方向 <span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="委托方向" class="form-control use-select2" name="entrustAspect" class="entrustAspect" >
							<option value="买入">买入</option>
		            		<option value="卖出">卖出</option>
						</select>
					</div>
					<label class="col-sm-2 control-label">清算速度 <span class="text-danger">*</span></label>
					<div class="col-sm-4 form-inner">
						<select placeholder="委托方向" class="form-control use-select2" name="clearSpeed" class="clearSpeed" >
							<option value="T+0">T+0</option>
		            		<option value="T+1">T+1</option>
						</select>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">净价价格</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="净价价格" class="form-control" name="netprice" id="netprice" value="" />
					</div>
					<label class="col-sm-2 control-label">全价价格</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="全价价格" class="form-control" name="fullprice" id="fullprice" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">到期收益率</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="到期收益率 " class="form-control" name="expireIncome" id="expireIncome" value="" />
					</div>
					<label class="col-sm-2 control-label">券面金额</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="券面金额" class="form-control" name="facevalueMoney" id="facevalueMoney" value="" />
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">交易对手</label>
					<div class="col-sm-4 form-inner">
						<input type="text" placeholder="交易对手" class="form-control" name="tradeOpponent" id="tradeOpponent" value="" />
					</div>
				</div>
				
				<div class="form-group1" style="height: 70px;">
					<label class="col-sm-2 control-label">备注</label>
					<div class="col-sm-10 form-inner">
						<textarea cols="60" rows="3" class="form-control" name="remark" id="remark" value="" ></textarea>
					</div>
				</div>
				
				<div class="form-group1">
					<label class="col-sm-2 control-label">指令日期<span class="text-danger">*</span></label>
					<div class="col-sm-10 form-inner">
						<input type="text" style="float: left; width: 246.66px;" placeholder="指令日期" class="form-control directiveStime" name="directiveStime" value="" />
						<label style="float: left;margin: 5px 10px 0 10px;">~</label>
						<input type="text" style="float: left; width: 246.66px;" placeholder="指令日期" class="form-control directiveEtime" name="directiveEtime" value="" />
					</div>
				</div>
				<br>
				<div class="page-footer" style="margin-left: 30%;">
			         <button type="button" class="btn btn-primary btn-save" data-loading-text="保存中..." id="submitBtn" name="submitBtn" onclick="doSubmit('bankBondDealForm')">保存</button>
			         <input type="reset" class="resetForm" name="resetForm" value="重置" style="display: none;"/>
			    </div>
			</form>
			</div>
		</div>
	</div>
<script type="text/javascript" src="<%=context%>resources/modules/business/investTrade/tradeOrderAdd.js?r=<%=Math.random()%>"></script>
<script type="text/javascript">
		var basePath = "<%=context%>";
		var primaryPath = '<%=context%>' +'business/orderManage/';
		setPath(primaryPath,basePath);
</script>
</body>
</html>